﻿namespace K9Nano;

public sealed class K9Options
{
    /// <summary>
    /// 固定的验证码。非空时，验证码只会返回此值，便于测试
    /// </summary>
    public string? FrozenCaptcha { get; set; }

    /// <summary>
    /// 验证码有效期
    /// </summary>
    public int CaptchaExpires { get; set; } = 5;

    /// <summary>
    /// 验证码长度
    /// </summary>
    public int CaptchaLength { get; set; } = 4;

    /// <summary>
    /// 验证码类型：Digital-纯数字，Alphabet-纯字母，其他-字母+数字
    /// </summary>
    public string CaptchaType { get; set; } = "Digital";

    /// <summary>
    /// 文件存储目录
    /// </summary>
    public string StorageRoot { get; set; } = "files";

    public string StorageRequestPath{ get; set; } = "/files/";
}
